package com.ruoyi.system.DTO.Reques.vms;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * Description:
 *
 * @author JourWon
 * @date Created on 2025/5/14
 */
@Data
public class SkuDTO {

    @NotBlank(message = "商品名称不能为空")
    @Size(max = 50, message = "商品名称长度不能超过50")
    private String skuName;

    @NotBlank(message = "商品图片不能为空")
    private String skuImage;

    @NotNull(message = "价格不能为空")
    @Min(value = 1, message = "价格必须大于0")
    private Integer price;

    @NotNull(message = "商品类别不能为空")
    private Integer classId;

    @NotBlank(message = "单位不能为空")
    private String unit;

    @NotBlank(message = "品牌名称不能为空")
    private String brandName;
}
